module.exports = {
  publicPath: process.env.NODE_ENV === 'development' ? './' : '/',
  outputDir: 'dist',
  assetsDir: 'static',
  indexPath: 'index.html',
  lintOnSave: false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:3000',
        ws: true,
        // 是否允许跨域
        changeOrigin: true
      }
    }
  }
}
